package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRentBillLines;
import com.appkubes.mall.core.po.FintechRentBillLinesExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRentBillLinesMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRentBillLinesSqlProvider.class, method="countByExample")
    long countByExample(FintechRentBillLinesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRentBillLinesSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRentBillLinesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_rent_bill_lines",
        "where bill_line_key = #{billLineKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String billLineKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_rent_bill_lines (bill_line_key, app_key, ",
        "bill_key, period, ",
        "period_amount, period_interest_amount, ",
        "period_fine_amount, interest_rate, ",
        "unpay_interest_amount, unpay_amount, ",
        "unpay_fine_amount, breaks_amount, ",
        "repay_amount, repay_interest_amount, ",
        "repay_fine_amount, period_start_date, ",
        "period_end_date, overdue_days, ",
        "fine_rate, `status`, ",
        "pay_time, create_time, ",
        "update_time, remark)",
        "values (#{billLineKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{billKey,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, ",
        "#{periodAmount,jdbcType=INTEGER}, #{periodInterestAmount,jdbcType=INTEGER}, ",
        "#{periodFineAmount,jdbcType=INTEGER}, #{interestRate,jdbcType=DECIMAL}, ",
        "#{unpayInterestAmount,jdbcType=INTEGER}, #{unpayAmount,jdbcType=INTEGER}, ",
        "#{unpayFineAmount,jdbcType=INTEGER}, #{breaksAmount,jdbcType=INTEGER}, ",
        "#{repayAmount,jdbcType=INTEGER}, #{repayInterestAmount,jdbcType=INTEGER}, ",
        "#{repayFineAmount,jdbcType=INTEGER}, #{periodStartDate,jdbcType=DATE}, ",
        "#{periodEndDate,jdbcType=DATE}, #{overdueDays,jdbcType=INTEGER}, ",
        "#{fineRate,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, ",
        "#{payTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR})"
    })
    int insert(FintechRentBillLines record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRentBillLinesSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRentBillLines record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRentBillLinesSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="bill_line_key", property="billLineKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_key", property="billKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="period", property="period", jdbcType=JdbcType.INTEGER),
        @Result(column="period_amount", property="periodAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_interest_amount", property="periodInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_fine_amount", property="periodFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="interest_rate", property="interestRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="unpay_interest_amount", property="unpayInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="unpay_amount", property="unpayAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="unpay_fine_amount", property="unpayFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="breaks_amount", property="breaksAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_amount", property="repayAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_interest_amount", property="repayInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_fine_amount", property="repayFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_start_date", property="periodStartDate", jdbcType=JdbcType.DATE),
        @Result(column="period_end_date", property="periodEndDate", jdbcType=JdbcType.DATE),
        @Result(column="overdue_days", property="overdueDays", jdbcType=JdbcType.INTEGER),
        @Result(column="fine_rate", property="fineRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechRentBillLines> selectByExampleWithRowbounds(FintechRentBillLinesExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRentBillLinesSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="bill_line_key", property="billLineKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_key", property="billKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="period", property="period", jdbcType=JdbcType.INTEGER),
        @Result(column="period_amount", property="periodAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_interest_amount", property="periodInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_fine_amount", property="periodFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="interest_rate", property="interestRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="unpay_interest_amount", property="unpayInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="unpay_amount", property="unpayAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="unpay_fine_amount", property="unpayFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="breaks_amount", property="breaksAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_amount", property="repayAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_interest_amount", property="repayInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_fine_amount", property="repayFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_start_date", property="periodStartDate", jdbcType=JdbcType.DATE),
        @Result(column="period_end_date", property="periodEndDate", jdbcType=JdbcType.DATE),
        @Result(column="overdue_days", property="overdueDays", jdbcType=JdbcType.INTEGER),
        @Result(column="fine_rate", property="fineRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechRentBillLines> selectByExample(FintechRentBillLinesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "bill_line_key, app_key, bill_key, period, period_amount, period_interest_amount, ",
        "period_fine_amount, interest_rate, unpay_interest_amount, unpay_amount, unpay_fine_amount, ",
        "breaks_amount, repay_amount, repay_interest_amount, repay_fine_amount, period_start_date, ",
        "period_end_date, overdue_days, fine_rate, `status`, pay_time, create_time, update_time, ",
        "remark",
        "from fintech_rent_bill_lines",
        "where bill_line_key = #{billLineKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="bill_line_key", property="billLineKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="bill_key", property="billKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="period", property="period", jdbcType=JdbcType.INTEGER),
        @Result(column="period_amount", property="periodAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_interest_amount", property="periodInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_fine_amount", property="periodFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="interest_rate", property="interestRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="unpay_interest_amount", property="unpayInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="unpay_amount", property="unpayAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="unpay_fine_amount", property="unpayFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="breaks_amount", property="breaksAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_amount", property="repayAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_interest_amount", property="repayInterestAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="repay_fine_amount", property="repayFineAmount", jdbcType=JdbcType.INTEGER),
        @Result(column="period_start_date", property="periodStartDate", jdbcType=JdbcType.DATE),
        @Result(column="period_end_date", property="periodEndDate", jdbcType=JdbcType.DATE),
        @Result(column="overdue_days", property="overdueDays", jdbcType=JdbcType.INTEGER),
        @Result(column="fine_rate", property="fineRate", jdbcType=JdbcType.DECIMAL),
        @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR)
    })
    FintechRentBillLines selectByPrimaryKey(String billLineKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRentBillLinesSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRentBillLines record, @Param("example") FintechRentBillLinesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRentBillLinesSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRentBillLines record, @Param("example") FintechRentBillLinesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRentBillLinesSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRentBillLines record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_rent_bill_lines
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_rent_bill_lines",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "bill_key = #{billKey,jdbcType=VARCHAR},",
          "period = #{period,jdbcType=INTEGER},",
          "period_amount = #{periodAmount,jdbcType=INTEGER},",
          "period_interest_amount = #{periodInterestAmount,jdbcType=INTEGER},",
          "period_fine_amount = #{periodFineAmount,jdbcType=INTEGER},",
          "interest_rate = #{interestRate,jdbcType=DECIMAL},",
          "unpay_interest_amount = #{unpayInterestAmount,jdbcType=INTEGER},",
          "unpay_amount = #{unpayAmount,jdbcType=INTEGER},",
          "unpay_fine_amount = #{unpayFineAmount,jdbcType=INTEGER},",
          "breaks_amount = #{breaksAmount,jdbcType=INTEGER},",
          "repay_amount = #{repayAmount,jdbcType=INTEGER},",
          "repay_interest_amount = #{repayInterestAmount,jdbcType=INTEGER},",
          "repay_fine_amount = #{repayFineAmount,jdbcType=INTEGER},",
          "period_start_date = #{periodStartDate,jdbcType=DATE},",
          "period_end_date = #{periodEndDate,jdbcType=DATE},",
          "overdue_days = #{overdueDays,jdbcType=INTEGER},",
          "fine_rate = #{fineRate,jdbcType=DECIMAL},",
          "`status` = #{status,jdbcType=VARCHAR},",
          "pay_time = #{payTime,jdbcType=TIMESTAMP},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "remark = #{remark,jdbcType=VARCHAR}",
        "where bill_line_key = #{billLineKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRentBillLines record);
}